Skip to main content

Gather

Gather[list] gathers the elements of list into sublists of identical elements.

Gather[list,test] applies test to pairs of elements to determine if they should be considered identical.

Please visit the official Wolfram Language Reference for more details and examples on core symbols.